package TestsBuxfer;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;


/**
 * Created with IntelliJ IDEA.
 * User: C13T
 * Date: 12.07.13
 * Time: 19:18
 * To change this template use File | Settings | File Templates.
 */
public class Budgets {
    public WebDriver driver;
  //  @Test


    public Budgets(WebDriver driver){
        this.driver = driver;
    }

    public Budgets BudgetsPage(){
        WebElement TabBudgets = driver.findElement(By.id("tab-budgets"));
        TabBudgets.click();
        return new Budgets(driver);
    }

    public void CheckContent(){
        WebElement EditBudgets = driver.findElement(By.linkText("Edit"));
        EditBudgets.click();
        String TabBudgURL = driver.getCurrentUrl();
      //  Assert.assertEquals(TabBudgURL, "https://www.buxfer.com/home#/budgets");
    }
}
